package com.zerosky.crm.service;

import java.util.Map;

import com.zerosky.crm.po.Objective;
import com.zerosky.crm.util.PageInfo;

/**
 * Invite业务逻辑接口
 * 
 * @author zhouzhengxiang;
 * @since 2017-07-13
 */
public interface ObjectiveService {
	/**
	 * 获取目标
	 * 
	 * @param map
	 * @return
	 */
	public Objective getInvite(Map<String,Object> map);

	/**
	 * 新增目标
	 * 
	 * @param map
	 * @return
	 */
	public int addInvite(Objective invite);
	/**
	 * 获取个人销售目标
	 * 
	 * @param map
	 * @return
	 */
	public PageInfo<Objective> getObjectiveStatisticsByPersonal(Map<String,Object> map);
	/**
	 * 获取目标
	 * 
	 * @param map
	 * @return
	 */
	public PageInfo<Objective> getObjectiveStatisticsByTeam(Map<String,Object> map);
	/**
	 * 获取目标
	 * 
	 * @param map
	 * @return
	 */
	public PageInfo<Objective> getObjectiveStatisticsByBranch(Map<String,Object> map);
	/**
	 * 获取分公司销售目标
	 * 
	 * @param map
	 * @return
	 */
	public PageInfo<Objective> getObjectiveStatisticsByDept(Map<String,Object> map);
	/**
	 * 获取分公司数据
	 * 
	 * @param map
	 * @return
	 */
	public Objective getDept(Map<String,Object> map);
	/**
	 * 获取部门数据
	 * 
	 * @param map
	 * @return
	 */
	public Objective getBranch(Map<String,Object> map);
	/**
	 * 获取团队数据
	 * 
	 * @param map
	 * @return
	 */
	public Objective getTeam(Map<String,Object> map);
}
